import javax.swing.*;
import java.awt.*;
import java.util.*;
import java.util.List;
import java.util.concurrent.*;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
// 交通数据实体类
class TrafficData {
    private String deviceId;
    private int laneId;
    private int vehicleCount;
    private double avgSpeed;
    private LocalDateTime timestamp;

    public TrafficData(String deviceId, int laneId, int vehicleCount, double avgSpeed) {
        this.deviceId = deviceId;
        this.laneId = laneId;
        this.vehicleCount = vehicleCount;
        this.avgSpeed = avgSpeed;
        this.timestamp = LocalDateTime.now();
    }

    public String getDeviceId() { return deviceId; }
    public int getLaneId() { return laneId; }
    public int getVehicleCount() { return vehicleCount; }
    public double getAvgSpeed() { return avgSpeed; }
    public LocalDateTime getTimestamp() { return timestamp; }
}